from django.conf.urls.defaults import patterns, include, url
from computer.computers import views

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()


urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'computer.views.home', name='home'),
    # url(r'^computer/', include('computer.foo.urls')),
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
    (r'^admin/', include(admin.site.urls)),
    ('^add/$', views.addData),
    ('^savedata/$', views.Savedata),
    ('^computeredit/(\d{1,4})/$', views.computeredit),
    ('^show/$', views.Showdata),
    ('^showhistory/$', views.Showhistory),
)
